package io.iec.edp.caf.tenancy.service.api;

import io.iec.edp.caf.boot.context.CAFContext;
import io.iec.edp.caf.common.JSONSerializer;
import io.iec.edp.caf.commons.JsonSerialization;
import io.iec.edp.caf.commons.utils.SpringBeanUtils;
import io.iec.edp.caf.tenancy.api.ITenantService;
import io.iec.edp.caf.tenancy.api.entity.AppInstanceInfo;
import io.iec.edp.caf.tenancy.api.entity.DbConnectionInfo;
import io.iec.edp.caf.tenancy.api.entity.SuDbMapping;
import io.iec.edp.caf.tenancy.api.entity.Tenant;
import io.iec.edp.caf.tenancy.core.service.TenantService;
import io.iec.edp.caf.tenancy.service.ITenancyRestService;
import io.iec.edp.caf.tenancy.service.manager.TenancyRestService;

import java.util.List;
import java.util.Map;

public class TenancyRestServiceImpl implements ITenancyRestService {


    //构造注入
    private TenancyRestService tenancyRestService;
    public TenancyRestServiceImpl(TenancyRestService tenancyRestService){
        this.tenancyRestService = tenancyRestService;
    }

    @Override
    public Map<String, Object> getTenantInfo(int tenantId) {
        return tenancyRestService.getTenantInfo(tenantId);
    }

    @Override
    public List<Tenant> getAllTenants() {
        return tenancyRestService.getAllTenants();
    }

}
